package com.huawang.mdesign.model.service.request;

import com.huawang.business.constants.ParamErrorConstants;
import com.huawang.business.dto.ProjectIdDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class CreateEntityByDragDTO extends ProjectIdDTO {

    @Schema(title = "拖拽模型id")
    @NotBlank(message = ParamErrorConstants.NO_SOURCE_ID)
    private String sourceModelId;

    @Schema(title = "被插入关系模型id")
    @NotBlank(message = ParamErrorConstants.NO_TARGET_ID)
    private String targetModelId;

    @Schema(title = "新增关系边id")
    @NotBlank(message = ParamErrorConstants.NO_RELATIONSHIP_ID)
    private String relationshipId;

    @Schema(title = "插入方式:1.Before 2.After 3.Unplug")
    private String method;

}
